package com.swf.common.xml;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.List;
import java.util.Scanner;

import com.swf.common.utils.FwsPatternUtils;

public class A {
public static void main(String[] args) {
	/*	String sa=" temp1,abc b1,temp2 d1,defh,ghxs gh";
		//String regex = "[\\d|\\w]+(?= )|(?<=,)[\\w|\\d]+(?=,)|(?<= )[\\w|\\d]+(?=,)";
		String regex = "(?<!,)[\\d|\\w]+";
		List<String> list = FwsPatternUtils.matchedList(sa, regex);
		for (String s:list){
			System.out.print(s+" ");
			
		}*/
	/*Scanner scanner = new Scanner(System.in);
	int b=0;
	do {
		System.out.println(b);
		b = scanner.nextInt();
	}while (b==1);*/
	
	 		int m,n;
	 		Scanner cin = new Scanner(System.in);
	 		m = cin.nextInt();
	 		n = cin.nextInt();
	 		for(int i=0;i<m;i++)
	 		{
	 			for(int j=0;j<n;j++)
	 				System.out.print((char)('A'+i+j));
	 			System.out.println("");
	 		}
}
}
